<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\ActivityZan */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="activity-zan-form">

    <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true])->label('店铺名称') ?>

    <?= $form->field($model, 'file')->fileInput() ?>

    <?= $form->field($model, 'count_1')->textInput() ?>

    <?= $form->field($model, 'count_2')->textInput() ?>

    <?= $form->field($model, 'count_3')->textInput() ?>

    <?= $form->field($model, 'gift_1')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'gift_2')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'gift_3')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
